﻿#include <iostream>
#include "maxHeap.h"
using namespace std;
int main()
{
    cout << "元素个数；元素值：" << '\n';
    int N;
    cin >> N;
    maxHeap<int> heap(N, 100, 1);
    int* A = new int[N];
    for (int i = 0; i < N; i++)
        cin >> A[i];
    cout << "-----------------------------初始化-----------------------------" << '\n';
    heap.initialize(A, N);
    heap.output();
    heap.pop();
    heap.pop();
    heap.pop();
    heap.output();
    heap.push(12);
    heap.push(0);
    heap.output();
    delete[] A;
    return 0;
}
